package com.yunxin.download.server.model.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 下载记录表
 *
 * @author zero°
 * @since   2023-06-13
 */
public class DownloadRecord implements Serializable {
    /**
     * 主键
     */
    private Long id;

    /**
     * 下载方法配置id
     */
    private Long downloadMethodConfigId;

    /**
     * 下载时间
     */
    private Date downloadTime;

    /**
     * 下载文件名称
     */
    private String downloadFileName;

    /**
     * 下载文件地址
     */
    private String downloadFileUrl;

    /**
     * 下载人
     */
    private String downloaderName;

    /**
     * oss文件的key
     */
    private String ossKey;

    /**
     * 下载状态 0.未下载,1.已下载
     */
    private Integer downloadStatus;

    /**
     * 文件状态 1.生成中,2.生成成功,3.已过期
     */
    private Integer downloadFileStatus;

    /**
     * 下载格式(1.csv 2.pdf 3.xlsx)
     */
    private Integer downloadFormat;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date editTime;

    /**
     * 版本号
     */
    private Long version;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDownloadMethodConfigId() {
        return downloadMethodConfigId;
    }

    public void setDownloadMethodConfigId(Long downloadMethodConfigId) {
        this.downloadMethodConfigId = downloadMethodConfigId;
    }

    public Date getDownloadTime() {
        return downloadTime;
    }

    public void setDownloadTime(Date downloadTime) {
        this.downloadTime = downloadTime;
    }

    public String getDownloadFileName() {
        return downloadFileName;
    }

    public void setDownloadFileName(String downloadFileName) {
        this.downloadFileName = downloadFileName;
    }

    public String getDownloadFileUrl() {
        return downloadFileUrl;
    }

    public void setDownloadFileUrl(String downloadFileUrl) {
        this.downloadFileUrl = downloadFileUrl;
    }

    public String getDownloaderName() {
        return downloaderName;
    }

    public void setDownloaderName(String downloaderName) {
        this.downloaderName = downloaderName;
    }

    public String getOssKey() {
        return ossKey;
    }

    public void setOssKey(String ossKey) {
        this.ossKey = ossKey;
    }

    public Integer getDownloadStatus() {
        return downloadStatus;
    }

    public void setDownloadStatus(Integer downloadStatus) {
        this.downloadStatus = downloadStatus;
    }

    public Integer getDownloadFileStatus() {
        return downloadFileStatus;
    }

    public void setDownloadFileStatus(Integer downloadFileStatus) {
        this.downloadFileStatus = downloadFileStatus;
    }

    public Integer getDownloadFormat() {
        return downloadFormat;
    }

    public void setDownloadFormat(Integer downloadFormat) {
        this.downloadFormat = downloadFormat;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getEditTime() {
        return editTime;
    }

    public void setEditTime(Date editTime) {
        this.editTime = editTime;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }
}